﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Flagwind.Data
{
	public interface ICommand
	{
		Command1 Select(params object[] fields);
	}

	public interface ICommand4
	{
		Command End();

		CommandOrderType OrderBy(object field);
	}

	public interface ICommand1 : ICommand2
	{
		Command2 Where(params object[] fields);
	}

	public interface ICommand2 : ICommand3
	{
		Command3 GroupBy(object field);
	}

	public interface ICommand3 : ICommand4
	{
		Command4 Having(object field, object Value, string sqlFunctionFormat);
	}
}